﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="TeamDetails.aspx.cs" Inherits="AB.ServiceDirectory.Design.TeamMaintenance.TeamDetails" %>

<%@ Register TagName="TypeOfBusinessLookup" TagPrefix="wuc" Src="~/WebUserControls/Lookup/TypeOfBusinessLookup.ascx" %>
<%@ Register TagPrefix="wuc" TagName="ContactLookupPopup" Src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<%@ Register TagPrefix="wuc" TagName="AddressLookupPopup" Src="~/WebUserControls/Lookup/AddressLookup.ascx" %>
<%@ Register TagPrefix="wuc" TagName="DialogBox" Src="~/WebUserControls/DialogBox.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        Team Details</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <asp:HiddenField ID="HiddenFieldDepartmentId" runat="server" />
    <asp:HiddenField ID="HiddenFieldTeamId" runat="server" />
    <asp:HiddenField ID="HiddenFieldTeamName" runat="server" />
    <div class="grid740 simplebox relative">
        <wuc:DialogBox ID="DialogBox" runat="server" />
        <div id="tabs">
            <ul>
                <li>
                    <asp:HyperLink ID="LinkDetails01" runat="server" NavigateUrl="#DetailsPanel01">Details</asp:HyperLink>
                </li>
            </ul>
            <span class="top-right-cornor">
                <asp:Button CssClass="st-button" ID="ButtonInactive" runat="server" Text="In-active"
                    CommandName="active" CausesValidation="False" OnCommand="ButtonInactive_Command"
                    Visible="False" />
                <asp:Button ID="ButtonSave" runat="server" CssClass="st-button" Text="Save" OnClick="ButtonSave_Click"
                    Enabled="False" />
                <asp:Button ID="ButtonBack" runat="server" CausesValidation="False" CssClass="st-button"
                    Text="Back" OnCommand="ButtonBack_Command" />
            </span>
            <%--BUSINESS LOOKUP--%>
            <%--CONTACT LOOKUP--%>
            <%--WEB USER CONTROL--%>
            <asp:Panel ID="DetailsPanel01" runat="server" ClientIDMode="Static">
                <%--Mỗi một dòng có đường kẻ ngang là một div với class st-form-line-noleft--%>
                <div class="st-form-line-noleft">
                    <%--Phần bên trái của 1 dòng là 1 label và 1 textbox, checkbox,...--%>
                    <div class="half">
                        <asp:Label ID="LabelTeamName" runat="server" AssociatedControlID="TextBoxTeamName"
                            CssClass="st-labeltext level1 required" Text="Team Name">
                            <asp:RequiredFieldValidator ID="RequiredOrganizationName" runat="server" ErrorMessage="*"
                                Display="None" SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxTeamName" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </asp:Label><asp:TextBox ID="TextBoxTeamName" runat="server" CssClass="st-forminput"
                            Width="200px"></asp:TextBox></div><%--Phần bên phải tương tự nhưng có thêm class là last--%><div class="half last">
                        <asp:Label ID="LabelTypeOfBusiness" runat="server" AssociatedControlID="TextBoxTypeOfBusiness"
                            CssClass="st-labeltext level1" Text="Type of Business">
                        </asp:Label><asp:TextBox ID="TextBoxTypeOfBusiness" runat="server" CssClass="st-forminput st-disable"
                            Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton ID="ButtonTypeOfBusiness"
                                runat="server" CausesValidation="False" CssClass="hg-blue" Text="Lookup" OnClick="ButtonTypeOfBusiness_Click" /><asp:HiddenField
                                    ID="HiddenFieldBusinessId" runat="server" />
                    </div>
                    <%--Bắt buộc phải có phần này sau 2 thẻ div có class là half--%><div class="clear">
                    </div>
                </div>
                <%--Mỗi một dòng có đường kẻ ngang là một div với class st-form-line-noleft--%><div
                    class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelShortDescription" runat="server" AssociatedControlID="TextBoxShortDescription"
                            CssClass="st-labeltext level1" Text="Team Short Description">
                    
                        </asp:Label><asp:TextBox ID="TextBoxShortDescription" runat="server" CssClass="st-forminput"
                            Rows="3" TextMode="MultiLine" Width="200px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelSicCode" runat="server" AssociatedControlID="TextBoxSicCode"
                            CssClass="st-labeltext level1" Text="SIC"></asp:Label><asp:TextBox ID="TextBoxSicCode"
                                runat="server" CssClass="st-forminput st-disable" Width="50px"></asp:TextBox><br /></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelLeadContact" runat="server" AssociatedControlID="TextBoxLeadContact"
                            CssClass="st-labeltext level1" Text="Lead Contact"></asp:Label><asp:TextBox ID="TextBoxLeadContact"
                                runat="server" CssClass="st-forminput st-disable" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton
                                    ID="ButtonContactLookup" runat="server" CausesValidation="False" CssClass="hg-blue"
                                    Text="Lookup" OnClick="ButtonContactLookup_Click" /><asp:HiddenField ID="HiddenFieldContactId"
                                        runat="server" />
                    </div>
                    <div class="half last">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label2" runat="server" AssociatedControlID="RadioButtonListAddress"
                            CssClass="st-labeltext level1-5" Text="Copy address from"></asp:Label><asp:RadioButtonList
                                ID="RadioButtonListAddress" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonListAddress_SelectedIndexChanged"
                                RepeatDirection="Horizontal">
                                <asp:ListItem Value="Organization">Organization</asp:ListItem><asp:ListItem Value="Parent">Parent</asp:ListItem></asp:RadioButtonList><br /><br /><asp:Label ID="LabelAddressLine1" runat="server" AssociatedControlID="TextBoxAddressLine1"
                            CssClass="st-labeltext level1" Text="Address Line 1">
                    
                        </asp:Label><asp:TextBox ID="TextBoxAddressLine1" runat="server" CssClass="st-forminput"
                            Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine2" runat="server" AssociatedControlID="TextBoxAddressLine2"
                            CssClass="st-labeltext level1" Text="Address Line 2"></asp:Label><asp:TextBox ID="TextBoxAddressLine2"
                                runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine3" runat="server" AssociatedControlID="TextBoxAddressLine3"
                            CssClass="st-labeltext level1" Text="Address Line 3"></asp:Label><asp:TextBox ID="TextBoxAddressLine3"
                                runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelFullDescription" runat="server" AssociatedControlID="TextBoxFullDescription"
                            CssClass="st-labeltext level1" Text="Full Description"></asp:Label><asp:TextBox ID="TextBoxFullDescription"
                                runat="server" CssClass="st-forminput" Rows="3" TextMode="MultiLine" Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelPhoneNumber" runat="server" AssociatedControlID="TextBoxPhoneNumber"
                            CssClass="st-labeltext level1" Text="Phone Number">
                   
                        </asp:Label><asp:TextBox ID="TextBoxPhoneNumber" runat="server" CssClass="st-forminput"
                            Width="200px"></asp:TextBox><div class="clear">
                            </div>
                        <asp:CompareValidator ID="CompareValidatorPhoneNumber" runat="server" ErrorMessage="Phone number must be digits"
                            ControlToValidate="TextBoxPhoneNumber" Display="Dynamic" ForeColor="#CC0000"
                            Operator="DataTypeCheck" SetFocusOnError="True" Type="Integer"></asp:CompareValidator></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelPostcode" runat="server" AssociatedControlID="TextBoxPostcode"
                            CssClass="st-labeltext level1" Text="Postcode">
                        </asp:Label><asp:TextBox ID="TextBoxPostcode" runat="server" CssClass="st-forminput"
                            Width="150px"></asp:TextBox><asp:LinkButton ID="ButtonPostcodeLookup" runat="server"
                                CausesValidation="False" CssClass="hg-blue" Text="Lookup" OnClick="ButtonPostcodeLookup_Click" /><asp:HiddenField
                                    ID="HiddenFieldAddressId" runat="server" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelFax" runat="server" AssociatedControlID="TextBoxFax" CssClass="st-labeltext level1"
                            Text="Fax">
                        
                        </asp:Label><asp:TextBox ID="TextBoxFax" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox><div
                            class="clear">
                        </div>
                        <asp:CompareValidator ID="CompareValidatorFax" runat="server" ErrorMessage="Fax must be digits"
                            ControlToValidate="TextBoxFax" Display="Dynamic" ForeColor="#CC0000" Operator="DataTypeCheck"
                            SetFocusOnError="True" Type="Integer"></asp:CompareValidator></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCityTown" runat="server" AssociatedControlID="TextBoxCityTown"
                            CssClass="st-labeltext level1" Text="Town/Village/City"></asp:Label><asp:TextBox
                                ID="TextBoxCityTown" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelEmail" runat="server" AssociatedControlID="TextBoxEmail" CssClass="st-labeltext level1"
                            Text="Email"></asp:Label><asp:TextBox ID="TextBoxEmail" runat="server" CssClass="st-forminput"
                                Width="200px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="County" runat="server" CssClass="st-labeltext level1" Text="County"
                            AssociatedControlID="TextBoxCounty"></asp:Label><asp:TextBox ID="TextBoxCounty" runat="server"
                                CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="half last">
                        <asp:Label ID="LabelWebAddress" runat="server" AssociatedControlID="TextBoxWebAddress"
                            CssClass="st-labeltext level1" Text="Web Address"></asp:Label><asp:TextBox ID="TextBoxWebAddress"
                                runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelCountry" runat="server" CssClass="st-labeltext level1" Text="Country"></asp:Label><asp:DropDownList
                            ID="DropDownListNationCounty" runat="server" CssClass="st-forminput" Width="200px"
                            DataTextField="CountryName" DataValueField="CountryId">
                        </asp:DropDownList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <br />
                <%--BUSINESS LOOKUP--%>
                <wuc:TypeOfBusinessLookup ID="BusinessLookup" runat="server" TextBoxBusinessNameId="TextBoxTypeOfBusiness"
                    TextBoxSicCodeId="TextBoxSicCode" HiddenFieldBusinessId="HiddenFieldBusinessId"
                    MaximumRows="5" />
                <%--CONTACT LOOKUP--%>
                <wuc:ContactLookupPopup ID="ContactLookupPopup" runat="server" TextBoxResultId="TextBoxLeadContact"
                    HiddenFieldResultId="HiddenFieldContactId" MaximumRows="5" />
                <%--WEB USER CONTROL--%><%--ADDRESS - POSTCODE LOOKUP--%><wuc:AddressLookupPopup
                    ID="AddressLookupPopup" TextBoxPostcodeId="TextBoxPostcode" HiddenFieldAddressId="HiddenFieldAddressId"
                    TextBoxAddressLine1Id="TextBoxAddressLine1" TextBoxAddressLine2Id="TextBoxAddressLine2"
                    TextBoxAddressLine3Id="TextBoxAddressLine3" runat="server" />
            </asp:Panel>
        </div>
    </div>
</asp:Content>
